home *** CD-ROM | disk | FTP | other *** search
Unknown | 2005-12-07 | 1.9 KB |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was not able to be converted.
This format is not currently supported by dexvert.
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| file
| data
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 00 00 00 00 00 00 00 | 42 1f 2f 2f 20 43 6f 70 |........|B.// Cop|
|00000010| 79 72 69 67 68 74 20 28 | 43 29 20 32 30 30 35 20 |yright (|C) 2005 |
|00000020| 42 72 61 69 6e 62 6f 78 | 20 47 61 6d 65 73 2e 20 |Brainbox| Games. |
|00000030| 41 6c 6c 20 52 69 67 68 | 74 73 20 52 65 73 65 72 |All Righ|ts Reser|
|00000040| 76 65 64 2e 0d 0a 2f 2f | 20 53 65 70 74 65 6d 62 |ved...//| Septemb|
|00000050| 65 72 20 32 37 2c 20 32 | 30 30 35 0d 0a 63 6c 61 |er 27, 2|005..cla|
|00000060| 73 73 20 48 65 6c 6c 6f | 57 65 62 20 65 78 74 65 |ss Hello|Web exte|
|00000070| 6e 64 73 20 57 65 62 41 | 70 70 6c 69 63 61 74 69 |nds WebA|pplicati|
|00000080| 6f 6e 3b 0d 0a 0d 0a 2f | 2a 20 55 73 61 67 65 3a |on;..../|* Usage:|
|00000090| 0d 0a 54 68 69 73 20 69 | 73 20 61 20 73 61 6d 70 |..This i|s a samp|
|000000a0| 6c 65 20 77 65 62 20 61 | 70 70 6c 69 63 61 74 69 |le web a|pplicati|
|000000b0| 6f 6e 2c 20 74 6f 20 64 | 65 6d 6f 6e 73 74 72 61 |on, to d|emonstra|
|000000c0| 74 65 20 68 6f 77 20 74 | 6f 20 70 72 6f 67 72 61 |te how t|o progra|
|000000d0| 6d 20 66 6f 72 20 74 68 | 65 20 77 65 62 20 73 65 |m for th|e web se|
|000000e0| 72 76 65 72 2e 0d 0a 0d | 0a 0d 0a 5b 55 57 65 62 |rver....|...[UWeb|
|000000f0| 2e 57 65 62 53 65 72 76 | 65 72 5d 0d 0a 41 70 70 |.WebServ|er]..App|
|00000100| 6c 69 63 61 74 69 6f 6e | 73 5b 30 5d 3d 22 55 57 |lication|s[0]="UW|
|00000110| 65 62 2e 48 65 6c 6c 6f | 57 65 62 22 0d 0a 41 70 |eb.Hello|Web"..Ap|
|00000120| 70 6c 69 63 61 74 69 6f | 6e 50 61 74 68 73 5b 30 |plicatio|nPaths[0|
|00000130| 5d 3d 22 2f 68 65 6c 6c | 6f 22 0d 0a 62 45 6e 61 |]="/hell|o"..bEna|
|00000140| 62 6c 65 64 3d 54 72 75 | 65 0d 0a 0d 0a 68 74 74 |bled=Tru|e....htt|
|00000150| 70 3a 2f 2f 73 65 72 76 | 65 72 2e 69 70 2e 61 64 |p://serv|er.ip.ad|
|00000160| 64 72 65 73 73 2f 68 65 | 6c 6c 6f 0d 0a 0d 0a 2a |dress/he|llo....*|
|00000170| 2f 0d 0a 0d 0a 65 76 65 | 6e 74 20 51 75 65 72 79 |/....eve|nt Query|
|00000180| 28 57 65 62 52 65 71 75 | 65 73 74 20 52 65 71 75 |(WebRequ|est Requ|
|00000190| 65 73 74 2c 20 57 65 62 | 52 65 73 70 6f 6e 73 65 |est, Web|Response|
|000001a0| 20 52 65 73 70 6f 6e 73 | 65 29 0d 0a 7b 0d 0a 09 | Respons|e)..{...|
|000001b0| 6c 6f 63 61 6c 20 69 6e | 74 20 69 3b 0d 0a 0d 0a |local in|t i;....|
|000001c0| 09 69 66 28 52 65 71 75 | 65 73 74 2e 55 73 65 72 |.if(Requ|est.User|
|000001d0| 6e 61 6d 65 20 21 3d 20 | 22 74 65 73 74 22 20 7c |name != |"test" ||
|000001e0| 7c 20 52 65 71 75 65 73 | 74 2e 50 61 73 73 77 6f || Reques|t.Passwo|
|000001f0| 72 64 20 21 3d 20 22 74 | 65 73 74 22 29 0d 0a 09 |rd != "t|est")...|
|00000200| 7b 0d 0a 09 09 52 65 73 | 70 6f 6e 73 65 2e 46 61 |{....Res|ponse.Fa|
|00000210| 69 6c 41 75 74 68 65 6e | 74 69 63 61 74 69 6f 6e |ilAuthen|tication|
|00000220| 28 22 48 65 6c 6c 6f 57 | 65 62 22 29 3b 0d 0a 09 |("HelloW|eb");...|
|00000230| 09 72 65 74 75 72 6e 3b | 0d 0a 09 7d 09 09 0d 0a |.return;|...}....|
|00000240| 0d 0a 09 73 77 69 74 63 | 68 28 52 65 71 75 65 73 |...switc|h(Reques|
|00000250| 74 2e 55 52 49 29 0d 0a | 09 7b 0d 0a 09 63 61 73 |t.URI)..|.{...cas|
|00000260| 65 20 22 2f 66 6f 72 6d | 2e 68 74 6d 6c 22 3a 0d |e "/form|.html":.|
|00000270| 0a 09 09 52 65 73 70 6f | 6e 73 65 2e 53 65 6e 64 |...Respo|nse.Send|
|00000280| 54 65 78 74 28 22 3c 66 | 6f 72 6d 20 6d 65 74 68 |Text("<f|orm meth|
|00000290| 6f 64 3d 70 6f 73 74 20 | 61 63 74 69 6f 6e 3d 73 |od=post |action=s|
|000002a0| 75 62 6d 69 74 2e 68 74 | 6d 6c 3e 22 29 3b 0d 0a |ubmit.ht|ml>");..|
|000002b0| 09 09 52 65 73 70 6f 6e | 73 65 2e 53 65 6e 64 54 |..Respon|se.SendT|
|000002c0| 65 78 74 28 22 3c 69 6e | 70 75 74 20 74 79 70 65 |ext("<in|put type|
|000002d0| 3d 65 64 69 74 20 6e 61 | 6d 65 3d 54 65 73 74 45 |=edit na|me=TestE|
|000002e0| 64 69 74 3e 22 29 3b 0d | 0a 09 09 52 65 73 70 6f |dit>");.|...Respo|
|000002f0| 6e 73 65 2e 53 65 6e 64 | 54 65 78 74 28 22 3c 70 |nse.Send|Text("<p|
|00000300| 3e 3c 73 65 6c 65 63 74 | 20 6d 75 6c 74 69 70 6c |><select| multipl|
|00000310| 65 20 6e 61 6d 65 3d 73 | 65 6c 65 63 74 65 72 3e |e name=s|electer>|
|00000320| 22 29 3b 0d 0a 09 09 52 | 65 73 70 6f 6e 73 65 2e |");....R|esponse.|
|00000330| 53 65 6e 64 54 65 78 74 | 28 22 3c 6f 70 74 69 6f |SendText|("<optio|
|00000340| 6e 20 76 61 6c 75 65 3d | 5c 22 6f 6e 65 5c 22 3e |n value=|\"one\">|
|00000350| 4e 75 6d 62 65 72 20 4f | 6e 65 22 29 3b 0d 0a 09 |Number O|ne");...|
|00000360| 09 52 65 73 70 6f 6e 73 | 65 2e 53 65 6e 64 54 65 |.Respons|e.SendTe|
|00000370| 78 74 28 22 3c 6f 70 74 | 69 6f 6e 20 76 61 6c 75 |xt("<opt|ion valu|
|00000380| 65 3d 5c 22 74 77 6f 5c | 22 3e 4e 75 6d 62 65 72 |e=\"two\|">Number|
|00000390| 20 54 77 6f 22 29 3b 0d | 0a 09 09 52 65 73 70 6f | Two");.|...Respo|
|000003a0| 6e 73 65 2e 53 65 6e 64 | 54 65 78 74 28 22 3c 6f |nse.Send|Text("<o|
|000003b0| 70 74 69 6f 6e 20 76 61 | 6c 75 65 3d 5c 22 74 68 |ption va|lue=\"th|
|000003c0| 72 65 65 5c 22 3e 4e 75 | 6d 62 65 72 20 54 68 72 |ree\">Nu|mber Thr|
|000003d0| 65 65 22 29 3b 0d 0a 09 | 09 52 65 73 70 6f 6e 73 |ee");...|.Respons|
|000003e0| 65 2e 53 65 6e 64 54 65 | 78 74 28 22 3c 6f 70 74 |e.SendTe|xt("<opt|
|000003f0| 69 6f 6e 20 76 61 6c 75 | 65 3d 5c 22 66 6f 75 72 |ion valu|e=\"four|
|00000400| 5c 22 3e 4e 75 6d 62 65 | 72 20 46 6f 75 72 22 29 |\">Numbe|r Four")|
|00000410| 3b 0d 0a 09 09 52 65 73 | 70 6f 6e 73 65 2e 53 65 |;....Res|ponse.Se|
|00000420| 6e 64 54 65 78 74 28 22 | 3c 2f 73 65 6c 65 63 74 |ndText("|</select|
|00000430| 3e 3c 70 3e 22 29 3b 0d | 0a 09 09 52 65 73 70 6f |><p>");.|...Respo|
|00000440| 6e 73 65 2e 53 65 6e 64 | 54 65 78 74 28 22 3c 69 |nse.Send|Text("<i|
|00000450| 6e 70 75 74 20 74 79 70 | 65 3d 73 75 62 6d 69 74 |nput typ|e=submit|
|00000460| 20 6e 61 6d 65 3d 53 75 | 62 6d 69 74 20 76 61 6c | name=Su|bmit val|
|00000470| 75 65 3d 53 75 62 6d 69 | 74 3e 22 29 3b 0d 0a 09 |ue=Submi|t>");...|
|00000480| 09 52 65 73 70 6f 6e 73 | 65 2e 53 65 6e 64 54 65 |.Respons|e.SendTe|
|00000490| 78 74 28 22 3c 2f 66 6f | 72 6d 3e 22 29 3b 0d 0a |xt("</fo|rm>");..|
|000004a0| 09 09 62 72 65 61 6b 3b | 0d 0a 09 63 61 73 65 20 |..break;|...case |
|000004b0| 22 2f 73 75 62 6d 69 74 | 2e 68 74 6d 6c 22 3a 0d |"/submit|.html":.|
|000004c0| 0a 09 09 52 65 73 70 6f | 6e 73 65 2e 53 65 6e 64 |...Respo|nse.Send|
|000004d0| 54 65 78 74 28 22 54 68 | 61 6e 6b 73 20 66 6f 72 |Text("Th|anks for|
|000004e0| 20 73 75 62 6d 69 74 74 | 69 6e 67 20 74 68 65 20 | submitt|ing the |
|000004f0| 66 6f 72 6d 2e 3c 62 72 | 3e 22 29 3b 0d 0a 09 09 |form.<br|>");....|
|00000500| 52 65 73 70 6f 6e 73 65 | 2e 53 65 6e 64 54 65 78 |Response|.SendTex|
|00000510| 74 28 22 54 65 73 74 45 | 64 69 74 20 77 61 73 20 |t("TestE|dit was |
|00000520| 5c 22 22 24 52 65 71 75 | 65 73 74 2e 47 65 74 56 |\""$Requ|est.GetV|
|00000530| 61 72 69 61 62 6c 65 28 | 22 54 65 73 74 45 64 69 |ariable(|"TestEdi|
|00000540| 74 22 29 24 22 5c 22 3c | 70 3e 22 29 3b 0d 0a 09 |t")$"\"<|p>");...|
|00000550| 09 52 65 73 70 6f 6e 73 | 65 2e 53 65 6e 64 54 65 |.Respons|e.SendTe|
|00000560| 78 74 28 22 59 6f 75 20 | 73 65 6c 65 63 74 65 64 |xt("You |selected|
|00000570| 20 74 68 65 73 65 20 69 | 74 65 6d 73 3a 3c 62 72 | these i|tems:<br|
|00000580| 3e 22 29 3b 0d 0a 09 09 | 66 6f 72 28 69 3d 52 65 |>");....|for(i=Re|
|00000590| 71 75 65 73 74 2e 47 65 | 74 56 61 72 69 61 62 6c |quest.Ge|tVariabl|
|000005a0| 65 43 6f 75 6e 74 28 22 | 73 65 6c 65 63 74 65 72 |eCount("|selecter|
|000005b0| 22 29 2d 31 3b 69 3e 3d | 30 3b 69 2d 2d 29 0d 0a |")-1;i>=|0;i--)..|
|000005c0| 09 09 09 52 65 73 70 6f | 6e 73 65 2e 53 65 6e 64 |...Respo|nse.Send|
|000005d0| 54 65 78 74 28 22 5c 22 | 22 24 52 65 71 75 65 73 |Text("\"|"$Reques|
|000005e0| 74 2e 47 65 74 56 61 72 | 69 61 62 6c 65 4e 75 6d |t.GetVar|iableNum|
|000005f0| 62 65 72 28 22 73 65 6c | 65 63 74 65 72 22 2c 20 |ber("sel|ecter", |
|00000600| 69 29 24 22 5c 22 3c 62 | 72 3e 22 29 3b 0d 0a 09 |i)$"\"<b|r>");...|
|00000610| 09 62 72 65 61 6b 3b 0d | 0a 09 63 61 73 65 20 22 |.break;.|..case "|
|00000620| 2f 69 6e 63 6c 75 64 65 | 2e 68 74 6d 6c 22 3a 0d |/include|.html":.|
|00000630| 0a 09 09 52 65 73 70 6f | 6e 73 65 2e 53 75 62 73 |...Respo|nse.Subs|
|00000640| 74 28 22 76 61 72 69 61 | 62 6c 65 31 22 2c 20 22 |t("varia|ble1", "|
|00000650| 54 68 69 73 20 69 73 20 | 76 61 72 69 61 62 6c 65 |This is |variable|
|00000660| 20 31 22 29 3b 0d 0a 09 | 09 52 65 73 70 6f 6e 73 | 1");...|.Respons|
|00000670| 65 2e 53 75 62 73 74 28 | 22 76 61 72 69 61 62 6c |e.Subst(|"variabl|
|00000680| 65 32 22 2c 20 22 54 68 | 69 73 20 69 73 20 76 61 |e2", "Th|is is va|
|00000690| 72 69 61 62 6c 65 20 32 | 22 29 3b 0d 0a 09 09 52 |riable 2|");....R|
|000006a0| 65 73 70 6f 6e 73 65 2e | 53 75 62 73 74 28 22 76 |esponse.|Subst("v|
|000006b0| 61 72 69 61 62 6c 65 33 | 22 2c 20 22 54 68 69 73 |ariable3|", "This|
|000006c0| 20 69 73 20 76 61 72 69 | 61 62 6c 65 20 33 22 29 | is vari|able 3")|
|000006d0| 3b 0d 0a 09 09 52 65 73 | 70 6f 6e 73 65 2e 49 6e |;....Res|ponse.In|
|000006e0| 63 6c 75 64 65 55 48 54 | 4d 28 22 74 65 73 74 69 |cludeUHT|M("testi|
|000006f0| 6e 63 6c 75 64 65 2e 68 | 74 6d 6c 22 29 3b 0d 0a |nclude.h|tml");..|
|00000700| 09 09 62 72 65 61 6b 3b | 0d 0a 09 64 65 66 61 75 |..break;|...defau|
|00000710| 6c 74 3a 09 09 0d 0a 09 | 09 52 65 73 70 6f 6e 73 |lt:.....|.Respons|
|00000720| 65 2e 53 65 6e 64 54 65 | 78 74 28 22 48 65 6c 6c |e.SendTe|xt("Hell|
|00000730| 6f 20 77 65 62 21 20 20 | 54 68 65 20 63 75 72 72 |o web! |The curr|
|00000740| 65 6e 74 20 6c 65 76 65 | 6c 20 69 73 20 22 24 4c |ent leve|l is "$L|
|00000750| 65 76 65 6c 2e 54 69 74 | 6c 65 29 3b 0d 0a 09 09 |evel.Tit|le);....|
|00000760| 52 65 73 70 6f 6e 73 65 | 2e 53 65 6e 64 54 65 78 |Response|.SendTex|
|00000770| 74 28 22 3c 62 72 3e 43 | 6c 69 63 6b 20 3c 61 20 |t("<br>C|lick <a |
|00000780| 68 72 65 66 3d 5c 22 66 | 6f 72 6d 2e 68 74 6d 6c |href=\"f|orm.html|
|00000790| 5c 22 3e 74 68 69 73 20 | 6c 69 6e 6b 3c 2f 61 3e |\">this |link</a>|
|000007a0| 20 74 6f 20 67 6f 20 74 | 6f 20 61 20 74 65 73 74 | to go t|o a test|
|000007b0| 20 66 6f 72 6d 22 29 3b | 0d 0a 09 09 62 72 65 61 | form");|....brea|
|000007c0| 6b 3b 0d 0a 09 7d 0d 0a | 7d 0d 0a 00 |k;...}..|}... |
+--------+-------------------------+-------------------------+--------+--------+